myApp.factory('questionManagementService', ['$http', '$q', '$rootScope', function ($http, $q, $rootScope) {
    var questionManagementService = {};   // 返回的服务
    var apiUrl = $rootScope.url + '/question';
    var that = this; // 获取当前作用域，下面要用到
    var defered = $q.defer();

    var url = $rootScope.urlZ;

    /*
    * 根据组织机构id查询员工的列表
    * */
    questionManagementService.randomQuestion = function (poolId) {
        return $http.get(apiUrl + '/pool/' + poolId + '/random');
    };

    return questionManagementService;

}]);
